package com.demo.springBoot2.quartz.job;


import cn.hutool.extra.spring.SpringUtil;
import com.demo.springBoot2.forest.response.TuWeiResponse;
import com.demo.springBoot2.music.TtsMusicUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

/**
 * @Author pl711@qq.com
 * @PackageName springBoot2
 * @Package com.demo.springBoot2.quartz.job
 * @Date 2024/4/10 12:59
 * @Version 1.0
 *   定时给我女朋友发邮件 + 土味情话接口 = 沸羊羊
 */
@Slf4j
@Component
public class CallMyGirlFriendsJob implements Job {



    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //具体执行的内容
//        log.info("啊你嘎多美羊羊");
//        //hutool ioc 注入ttsMusicUtil
//        TtsMusicUtil ttsMusicUtil = SpringUtil.getBean("ttsMusicUtil");
//
//        HttpInterface httpInterface = SpringUtil.getBean("httpInterface");
//        TuWeiResponse tuWei = httpInterface.getTuWei();
//
//        ttsMusicUtil.syntheticAudio(tuWei.getContent());
    }
}
